package com.leo.lime.music.domain;

/**
 * Created by android on 18-3-17.
 */

public class Music {
    private int id;
    private String title;
    private long duration;
    private String displayName;
    private String data;
    private String size;
    private int artistId;
    private String artistKey;
    private String artist;
    private int albumId;
    private String albumKey;
    private String album;
    private String mimeType;
    private int year;
    private String track;
    private int edit;

    public int getEdit() {
        return edit;
    }

    public void setEdit(int edit) {
        this.edit = edit;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Music music = (Music) o;

        if (id != music.id) return false;
        if (duration != music.duration) return false;
        if (artistId != music.artistId) return false;
        if (albumId != music.albumId) return false;
        if (year != music.year) return false;
        if (edit != music.edit) return false;
        if (title != null ? !title.equals(music.title) : music.title != null) return false;
        if (displayName != null ? !displayName.equals(music.displayName) : music.displayName != null)
            return false;
        if (data != null ? !data.equals(music.data) : music.data != null) return false;
        if (size != null ? !size.equals(music.size) : music.size != null) return false;
        if (artistKey != null ? !artistKey.equals(music.artistKey) : music.artistKey != null)
            return false;
        if (artist != null ? !artist.equals(music.artist) : music.artist != null) return false;
        if (albumKey != null ? !albumKey.equals(music.albumKey) : music.albumKey != null)
            return false;
        if (album != null ? !album.equals(music.album) : music.album != null) return false;
        if (mimeType != null ? !mimeType.equals(music.mimeType) : music.mimeType != null)
            return false;
        return track != null ? track.equals(music.track) : music.track == null;

    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (int) (duration ^ (duration >>> 32));
        result = 31 * result + (displayName != null ? displayName.hashCode() : 0);
        result = 31 * result + (data != null ? data.hashCode() : 0);
        result = 31 * result + (size != null ? size.hashCode() : 0);
        result = 31 * result + artistId;
        result = 31 * result + (artistKey != null ? artistKey.hashCode() : 0);
        result = 31 * result + (artist != null ? artist.hashCode() : 0);
        result = 31 * result + albumId;
        result = 31 * result + (albumKey != null ? albumKey.hashCode() : 0);
        result = 31 * result + (album != null ? album.hashCode() : 0);
        result = 31 * result + (mimeType != null ? mimeType.hashCode() : 0);
        result = 31 * result + year;
        result = 31 * result + (track != null ? track.hashCode() : 0);
        result = 31 * result + edit;
        return result;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public int getArtistId() {
        return artistId;
    }

    public void setArtistId(int artistId) {
        this.artistId = artistId;
    }

    public String getArtistKey() {
        return artistKey;
    }

    public void setArtistKey(String artistKey) {
        this.artistKey = artistKey;
    }

    public String getArtist() {
        return artist;
    }

    public void setArtist(String artist) {
        this.artist = artist;
    }

    public int getAlbumId() {
        return albumId;
    }

    public void setAlbumId(int albumId) {
        this.albumId = albumId;
    }

    public String getAlbumKey() {
        return albumKey;
    }

    public void setAlbumKey(String albumKey) {
        this.albumKey = albumKey;
    }

    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getTrack() {
        return track;
    }

    public void setTrack(String track) {
        this.track = track;
    }
}
